package org.jproxy.json;

class Response
{
	private final boolean isOK;
	private final String message;
	private final String result;

	Response(boolean isOK, String result)
	{
		this(isOK, isOK ? null : result, isOK ? result : "undefined");
	}

	private Response(boolean isOK, String message, String result)
	{
		this.isOK = isOK;
		this.message = message;
		this.result = result;
	}

	boolean isOK()
	{
		return isOK;
	}

	String getMessage()
	{
		return message;
	}

	String getResult()
	{
		return result;
	}

}
